/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.awt.Color;
import java.awt.Graphics;
/**
 *
 * @author PhucAnh
 */
public class Point extends Shape{
    public int x,y;

    public Point() {
        
    }
        
    public Point(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }
    @Override
    public void toMove(int m,int n)
    {
        this.x += m;
        this.y += n;
    }
    
}
